package dialer.ws.base.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "break", schema = "call_center")
public class Breakk implements Serializable {

	private static final long serialVersionUID = 1820582887551860953L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;
	
	@Column(name = "name", nullable = false, length = 250)
	private String name;
	
	@Column(name = "description", length = 250)
	private String description;
	
	@Column(name = "status", nullable = false, length = 1)
	private String status;
	
	@Column(name = "tipo", length = 1)
	private String tipo;
	
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "breakk")
	private List<Audit> listAudit;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTipo() {
		return tipo;
	}

	public void setTipo(String tipo) {
		this.tipo = tipo;
	}

	public List<Audit> getListAudit() {
		return listAudit;
	}

	public void setListAudit(List<Audit> listAudit) {
		this.listAudit = listAudit;
	}

	
}
